<div class="hd-20160729">
    <div class="hd-banner-bg">
        <div class="hd-banenr">
            <div class="banner-text">
                
            </div>
        </div>
    </div>
    <div id="display0">
        <div class="hd-rule">
            <h5>Important Notes</h5>
            <p class="detial-info">
                * [
                <b>Warranty for liquidation</b>] All mobile has 90 days warranty while gadgets or electrical accessories
                for 30 days.
                <br> *[
                <b>Return</b>] No return product is accepted except quality problem when receiving the terminal.
                <br> * [
                <b>Delivery Time</b>] Product is sent from China warehouse by Singapore post or other post. And usually
                it takes 15 - 20 business days to arrive.
                <br> * Pandawill@2016. All rights reserved!
            </p>
        </div>
    </div>
    <div class="hd-main-content">
        <div class="w1000">
            <div class="hd-display-block" id="display1">
                <div class="display">
                    <h3 class="display-title">Best Sellers</h3>
                    <div class="hd-product-list" style="padding-bottom: 20px;">
                        <ul class="specially-display lists-6"></ul>
                    </div>
                    <div class="hd-product-list">
                        <ul class="lis1 lists-25 clearfloat"></ul>
                    </div>
                </div>
            </div>

            <div class="hd-display-block" id="display2">
                <div class="display">
                    <h3 class="display-title">Smart Devices</h3>
                    <div class="hd-product-list">
                        <ul class="lis1 lists-25 clearfloat"></ul>
                    </div>
                </div>
            </div>

            <div class="hd-display-block" id="display3">
                <div class="display">
                    <h3 class="display-title">Power Bank& Selfie Stick</h3>
                    <div class="hd-product-list">
                        <ul class="lis1 lists-25 clearfloat"></ul>
                    </div>
                </div>
            </div>

            <div class="hd-display-block" id="display4">
                <div class="display">
                    <h3 class="display-title">Other Collections</h3>
                    <div class="hd-product-list">
                        <ul class="lis1 lists-25 clearfloat"></ul>
                    </div>
                </div>
            </div>

            <div class="panel-layout">
                <ul>
                    <li>
                        <a href="#display1">Best Sellers</a>
                    </li>
                    <li>
                        <a href="#display2">Smart Devices</a>
                    </li>
                    <li>
                        <a href="#display3">PowerBank& Selfie Stick</a>
                    </li>
                    <li>
                        <a href="#display4">Other Collections</a>
                    </li>
                    <li>
                        <a id="hd-scrollTop" href="#Top"></a>
                    </li>
                </ul>
            </div>

        </div>
    </div>
</div>
<style>
    .hd-banner-bg{background: url(./images/201608011.jpg)no-repeat center top;}
    .hd-main-content{background: url(./images/201607293.jpg)no-repeat center top;}
    #display0{background: url(./images/201607292.jpg)no-repeat center top;height: 400px;}
    .hd-20160729 .hd-banenr{height: 569px;position: relative;width: 1000px;margin: 0px auto}
    .hd-banenr .banner-text{position: absolute;right: 0px;font-size: 14px;width: 180px;text-align: center;border: 1px solid #dedede;background: #fff;padding: 5px;}
    .hd-banenr .banner-text a{color: #02b717;}
    .hd-display-block .display-title{margin-bottom: 23px;color: #11A8D4;font-size: 36px;height: 67px;line-height: 63px;background: url(./images/201607294.png)no-repeat center top;text-shadow: 0px 0px 5px #fff;-webkit-text-shadow: 0px 0px 5px #fff;-ms-text-shadow: 0px 0px 5px #fff;-o-text-shadow: 0px 0px 5px #fff;font-weight: bold;}
    .specially-display .specially-list{display: inline-block;margin: 0px 10px 10px;}
    .hd-product-list{padding-bottom: 45px;}
    .hd-product-list ul li{-webkit-transition: all 0.3s ease;-moz-transition: all 0.3s ease;-ms-transition: all 0.3s ease;-o-transition: all 0.3s ease;transition: all 0.3s ease;}
    .hd-product-list ul li:hover{transform: translateY(-6px);-webkit-transform: translateY(-6px);-o-transform: translateY(-6px);-ms-transform: translateY(-6px);-moz-transform: translateY(-6px);}
    #display0 .hd-rule{width: 830px;height: 318px;padding: 75px 20px 0px;background: url(./images/201607293.png)no-repeat center top;margin: 0px auto;}
    #display0 .hd-rule h5{font-size: 24px;font-weight: bold;margin-bottom: 15px;color: #fff;text-align: center;}
    .hd-rule .detial-info{font-size: 17px;color: #fff;line-height: 25px;padding: 0px 30px;text-align: left;}
    .hd-display-block{text-align: center;}
    .hd-product-list .discount-number2{position: absolute;height: 60px;width: 60px;font-size: 20px;color: #fff100;font-weight: bold;top: 0px;right: 0px;line-height: 60px;background: #00afff;border-radius: 50%;}
    .hd-product-list .review-wrapper p{margin: 0px;text-align: center;line-height: 15px;padding: 0px 5px;}
    .hd-product-list .review-wrapper p a{color: #333;font-size: 12px;}
    .hd-product-list .lis1 li{width: 190px;height: 265px;background: #fff;float: left;margin: 5px;position: relative;}
    .hd-product-list .lis1 li:hover{border-color: #aaafb3;box-shadow: 0px 0px 16px #585858;-webkit-box-shadow: 0px 0px 16px #585858;-o-box-shadow: 0px 0px 16px #585858;-ms-box-shadow: 0px 0px 16px #585858;-moz-box-shadow: 0px 0px 16px #585858;}
    .hd-product-list .lis1 li:hover .review-wrapper p a{color: #ed6d1f;}
    .hd-product-list .lis1 li img{width: 100%;height: 185px;}
    .hd-product-list .price-area{padding-left: 5px;}
    .hd-product-list .old-price{font-size: 14px;text-decoration: line-through;display: block;line-height: 15px;color: #999;position: absolute;bottom: 28px;}
    .hd-product-list .current-price{font-size: 20px;font-weight: bold;color: #ed6d1f;display: block;line-height: 22px;position: absolute;bottom: 5px;}
    .hd-product-list .hd-btn-buy{font-size: 14px;color: #009dd2;display: block;text-decoration: underline;position: absolute;right: 5px;bottom: 5px;font-weight: bold;}
    .panel-layout{background: url(./images/2016072912.png)no-repeat;width: 200px;height: 260px;position: fixed;top: 0;margin-left: 1000px;display: none;}
    .panel-layout ul li{margin-bottom: 3px;list-style: none;}
    .panel-layout ul{margin-top: 80px;}
    .panel-layout ul li a{display: block;height: 34px;width: 100%;color: #000;text-align: center;font-size: 12px;line-height: 34px;padding-left: 4px;font-weight: bold;}
    .panel-layout ul li.current a{color: #00afff;}
    #hd-scrollTop{display: block;width: 82px;height: 40px;margin-left: 60px;opacity: 0;}
    .hd-product-list ul{list-style: none !important;}
</style>

<script type="text/javascript">
    (function ($) {
        var marker = GetQueryString("marker");
        if(marker == 'es'){
            $(".banner-text").append(`Entrar <a href="#">Geekvida.es >></a>`);
        }else if(marker == 'pw'){
            $(".banner-text").append(`Entrar<a href="#"> pandawill.com >></a>`);
        }else{

        }
        var str2 = ` <li>
                        <a href="#">
                            <img src="./images/2016040616.jpg" alt="Blackview Ultra A6 Plus 2GB 16GB Dorado">
                        </a>
                        <div class="review-wrapper">
                            <p>
                                <a href="#">Blackview Ultra A6 Plus 2GB 16GB Dorado</a>
                            </p>
                        </div>
                        <div class="price-area">
                            <span class="old-price">309.99€</span>
                            <span class="current-price">145.99€</span>
                        </div>
                        <span class="discount-number2">
                            <span class="inner2">
                                <span class="inner3">-25€</span>
                            </span>
                        </span>
                        <a href="#" class="hd-btn-buy">Buy now&gt;&gt;</a>
                    </li>`;
        var str3 = `<li class="specially-list">
                        <a href="#">
                            <img src="./images/201608012.png" alt="DOOGEE VOYAGER2 DG310">
                        </a>
                    </li>`;

        var str2_25 = '';
        for (var i = 0; i < 25; i++) {
            str2_25 += str2;
        }
        $(".lists-25").append(str2_25);



        var str3_6 = '';
        for (var i = 0; i < 6; i++) {
            str3_6 += str3;
        }
        $(".lists-6").append(str3_6);

        var sideNav = $(".panel-layout");
        function chagneBg(val,flag){
            if(val > 985){
                flag == "scroll" ? $(".hd-main-content").css({"background-attachment":"fixed"}) :'';
            }else{
                flag == "fixed" ? $(".hd-main-content").css({"background-attachment":"scroll"}) :'';
            }
        }
        var indexTimer = '', flag = true;

        $(window).on("scroll", function () {
            if(flag){
                flag = false;
                indexTimer = setTimeout(()=>{
                    chagneBg(document.documentElement.scrollTop || document.body.scrollTop, $(".hd-main-content").css("background-attachment"));
                    flag = true;
                    clearTimeout(indexTimer);
                },10);
            }
            var sideNavShow = $("#display1").offset().top;
            var modTop = [];
            if ($(this).scrollTop() >= sideNavShow) {
                sideNav.fadeIn(400);
            }
            else {
                sideNav.fadeOut(400);
            }
            /*滚动到哪个地方，相应的对方变换样式*/
            for (var i = 0; i < $(".panel-layout ul li a").length - 1; i++) {
                modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top;

                if ($(window).scrollTop() >= modTop[i]) {
                    $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
                };
            };
        });
        
        sideNav.find("li").find("a").on("click", function (e) {
            e.preventDefault();
            var aHash = this.hash;
            $("html,body").animate({
                scrollTop: aHash == "#Top" ? 0 : $(aHash).offset().top
            });
        });

    })(jQuery);
</script>